<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>乐淘商城</title>
    <link rel="stylesheet" href="./lib/mui/css/mui.min.css">
    <link rel="icon" href="./favicon.ico">
    <link rel="stylesheet" href="./lib/fa/css/font-awesome.min.css">
    <link rel="stylesheet" href="./css/common.css">
    <link rel="stylesheet" href="./css/search.css">
</head>

<body>
    <div class="lt-container">
        <div class="lt-header fx-x">
            <a href="#"><i class="mui-icon mui-icon-back"></i></a>
            <h3>搜索中心</h3>
            <a href="#"><i></i></a>
        </div>
        <div class="lt-main">
            <div class="mui-scroll-wrapper">
                <div class="mui-scroll">
                    <!-- 搜索框 -->
                    <div class="lt-search fx-x">
                        
                        <input type="text" class="form-control search-txt" placeholder="请输入搜索的关键字">
                        <button class="mui-btn mui-btn-primary search-btn">搜索</button>
                    </div>
                </div>
                    <!-- 搜索历史部分 -->
                    <div class="lt-search-history fx-y">
                      
                    </div>
            </div>



        </div>
        <div class="lt-footer">
            <!-- 底部导航 -->
            <ul class="lt-footer-nav fx-x">
                <li>
                    <a href="index.html"><i class="fa fa-home"></i>
                        <p>首页</p>
                    </a></li>
                <li><a href="./category.html"><i class="fa fa-th-list"></i>
                        <p>分类</p>
                    </a></li>
                <li><a href="#"><i class="fa fa-shopping-cart"></i>
                        <p>购物车</p>
                    </a></li>
                <li><a href="#"><i class="fa fa-user"></i>
                        <p>用户中心</p>
                    </a></li>
            </ul>
        </div>
    </div>
    
    <script type="text/html" id="tmp">
        {{if list.length==0}}
        <p>没有更多数据了</p>
        {{else}}
        <div class="box"> 
            <a href="#" class="mui-pull-left btn-search">搜索历史</a>
            <a href="#" class="mui-pull-right btn-clear"><i class="fa fa-trash"></i> 清空历史</a>
        </div>
       <ul class="list fx-y">
      <!-- 掏空了 -->
      {{each list v i}}
      <li>
          <p class="mui-pull-left search-next">{{v}}</p>
          <p class="mui-pull-right btn-del" data-index={{ i }}>x</p>
      </li>
      {{/each}}
       </ul>
       {{/if}}
    </script>
    <script src="./lib/artTemplate/template-web.js"></script>
    <script src="./lib/zepto/zepto.min.js"></script>
    <script src="./lib/mui/js/mui.js"></script>
    <script src="./js/common.js"></script>
    <script src="./js/search.js"></script>

</body>

</html>